<h2><kbd>List Pay</kbd></h2>
<hr/>
<?php if ($pays == null){ ?>
    <div class="alert alert-info">
        <p>No Paid!</p>
    </div>
<?php } else {?>
    <?php foreach($pays as $pay): ?>
        <div class="panel panel-default">
            <div class="panel-heading">With who: <span class="text-info"><?php echo $pay['tran']['with_who'] ?></span></div>
            <div class="panel-body">
                <div>
                    <p>
                        <span class="glyphicon glyphicon-tag"></span>Wallet:
                        <span class="text-success"><?php echo $pay['w']['name']; ?></span>
                    </p>
                </div>

                <p><span class="glyphicon glyphicon-usd"></span>Money: <span class="text-danger"><?php echo number_format($pay['tran']['money']) . ' VNĐ'; ?></span></p>
            </div>
            <div class="panel-footer">
                <?php echo $this->Html->link('Revenue', array('action' => 'revenue', $pay['tran']['transaction_id']), array('class' => 'btn btn-primary')) ?>
            </div>
        </div>
    <?php endforeach;?>
<?php }?>